import createPersistedState from "vuex-persistedstate";

export default ({store}) => {
  createPersistedState({
    key: 'vuex',
    paths: ['user']
  })(store); // vuex plugins can be connected to store, even after creation
};